package cn.ava.ymcc.uitls;

import cn.ava.ymcc.dto.AggrDto;
import cn.ava.ymcc.result.PageList;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.elasticsearch.search.aggregations.Aggregation;

import java.util.List;
import java.util.Map;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
public class AggrPageList extends PageList {

    private Map<String, List<AggrDto>> map;

    public AggrPageList(Long total, List rows, Map<String, List<AggrDto>> map) {
        super(total, rows);
        this.map = map;
    }
}
